* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/*  1.头部固定标签 */
#header {
    position: fixed;
    top: 0px;
    background-color: #e83030;
    display: flex;
    flex-direction: row;
    width: 100%;
    /* 必须加上100% */
}

.headerleft {
    margin: 5px 20px;
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.headerleft img {
    width: 30px;
    height: 30px;
}

.headerleft span {
    color: #fffafa;
    font-weight: 100;
}

.headright {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.headright div {
    display: flex;
    justify-content: space-between;
    margin-right: 20px;
    align-items: center;
}

.headright img {
    width: 25px;
    height: 25px;
}

.headright img:last-child {
    width: 20px;
    height: 20px;
}

.headright img:first-child {
    margin-right: 20px;
}

.headright span {
    color: #ffb6b5;
    font-weight: 100;
}

/* 2.主菜单选项 */
#menu {
    margin-top: 55px;
}

#menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 15px;
    box-sizing: border-box;
    /* 由于子元素的width已经占满父元素，此处的justify-content已经饱和不起作用*/
}

#menu li {
    width: 25%;
    margin-bottom: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 元素垂直居中即可，关键 */
}

#menu img {
    width: 45px;
}

#menu ul span {
    font-size: 8px;
    color: #6c6c6c;
    margin-top: 10px;
}

.loopmeun span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .5);
    border: #fffafa 1px solid;
    margin-right: 5px;
}

.loopmeun .active {
    background-color: #e83030;
}

.loopmeun {
    display: flex;
    justify-content: center;
    margin-top: -5px;
}

/* 3.商品营销 */
#shopping {
    background-color: #f5f5f5;
}

#shopping div {
    background-color: #ffff;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0 15px 20px;

}

#shopping div:first-child {
    margin-top: 15px;
}

#shopping>div>img {
    width: 35px;
    height: 35px;
}

#shopping p {
    margin-left: 10px;
}

#shopping>img {
    margin-bottom: 15px;
    border: 1px red solid;
    box-sizing: border-box;
}

#newsinfo .titleinfo {
    display: flex;
    justify-content: space-between;
}

.titleinfo span:first-child {
    color: #323232;
    padding: 10px;
}

.titleinfo span:last-child {
    color: #999999;
    padding: 10px;
}

.stockinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: #eeeeee 1px solid;
    border-bottom: #eeeeee 1px solid;
    margin: 0 25px;

}

.stockinfo p {
    font-weight: bold;
    font-size: 18px;
    padding: 20px 0 10px 0;

}

.stockinfo span {
    color: #323232;
    padding: 10px;
    padding: 10px 0 20px 0;
}

.focusinfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.focusinfo p {
    margin-left: 10px;
    margin-bottom: 15px;
}

/* 5.常用菜单 */
#commonmenu {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

#commonmenu ul {
    display: flex;
    overflow-x: auto;
    background-color: #ffff;
    padding: 15px 0;
    margin: 10px 0;

}
#commonmenu li {
    width: 23%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    /* 不缩放 */
}

#commonmenu img {
    width: 40px;
}

/* 6.建议 */
#suggest {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

#suggest img {
    width: 25px;
    height: 25px;
    margin-right: 5px;
}

#suggest span {
    color: #999999;
    margin-bottom: 50px;
}

/* 7.底部固定菜单 */
#fixmainfun {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    background: #323232;
    padding-top: 5px;
}

#fixmainfun img {
    width: 30px;
    height: 30px;
    padding: 3px 0;
}

#fixmainfun div {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

#fixmainfun p {
    color: #eeeeee;
    font-size: 12px;
}